home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
001
/
zcexe987.arc
/
phodir.t
< prev
next >
Wrap
Text File
|
1987-09-25
|
23KB
|
649 lines
::rev 09-25-87 for ZCOMM
cls; goto cmdch
ak lput "\r\n\E[1;5mType space to Continue\E[m"; if y
lput "\E[2A\E[2K"
busy speed 1200 putw "ATM0H1\r"
reset speed 1200; putw "ATZ\r";pat 1 OK; wait -f3
twx if twxout speed 1200 %s8 f -qxh twxout;o
else echo " No file to Send. "
tryd %telno
waketb pat 9 OK; ena -dt
while "!9&&L<2" put "ATZ\r" wait -f1
if 9 goto wak1
bye; br : Wake up the modem, including TrailBlazer
pat 1 "A"
while "!1&&L<30" putw "A"
if 1 put "TZ\r"; wait -f2
while "!9&&L<3" put "ATZ\r" wait -f1
if 9 goto wak1
sp 19200 echo "19200 bps"
bye; br; br; br; while "!9&&L<2" put "ATZ\r" wait -f1
while "!9&&L<10" put "AT\r" wait -f1
if 9 goto wak1
echo "No response From MODEM" dis -Q
bye; sleep 4; br; br; while "!9&&L<2" put "ATZ\r" wait -f2
if 9 goto wak1
echo "No response From MODEM"
bye; sleep 4; br; br; while "!9&&L<2" put "ATZ\r" wait -f2
if 9 goto wak1
echo "No response From MODEM: setting 2400 bps"; sp 2400
bye; sleep 4; br; br; while "!9&&L<2" put "ATZ\r" wait -f2
if 9 goto wak1
echo "No response From MODEM: setting 1200 bps"; sp 1200
while "!9&&L<20" o sleep 9 bye sleep 9 put "ATZ\r" wait -f2
if 9 goto wak1
echo "No response From MODEM"
wak1: pat 9l OK
while "!9&&L<10" put "AT\r" wait -f1
dis -t; ret
dial pat; pat 0 K\r\n; ena -d
bye
put "ATZ\r"; wait -f3; if !0 wait -f3
if !0 echo "Initializing MODEM"; br; sleep 60; put "ATZ\r"; wait -f5
if !0 put "AT E1 Q0 S7=60 V1 X1\r"; wait -f3
if "!0&&S>1201" speed 1200 put "ATZ\r"; wait -f3; if !0 wait -f3
if "!0&&S>301" speed 300 put "ATZ\r"; wait -f3; if !0 wait -f3
if !0 put "AT E1 Q0 S7=60 V1\r"; wait -f3
if !0 echo "No response From MODEM"; pat; fail
sleep 4
put "ATS6=5 S8=4 S0=0\r" wait -f2
pat 0c ";"
dis -d
put %mprefix; putw %telno\r
if 0 wait -f30; echo "Hit SPACE to Hang Up"; return
pat 9l OK
pat 1i "CONNECT\r"; pat 2i "NO CARRIER"; pat 3 "BUSY"; pat 4 RING;
pat 5l "ECT 12"; pat 6l "ECT 24"; pat 7l "CONNECT FAST"
pat 8 "NO DIAL TONE"; pat 10l "CONNECT 300"
wait -f60
while "4&&!L>3" wait -f20
if "1||10" sp 300 pat; return
if 5 sp 1200 pat; return
if 6 sp 2400 pat; return
if 7 sp 19200 pat; return
if !9 bye
pat; fail
askspd lput "1200 baud?"; if y sp 1200; return
lput "2400 baud?"; if y sp 2400; return
lput "4800 baud?"; if y sp 4800; return
lput "9600 baud?"; if y sp 9600; return
lput "19200 baud?"; if y sp 19200; return
lput "300 baud then."; sp 300; return
callcis speed 1200
if %s3 sets telno %s3; gosub tryd; if c sleep 20 put \3 return
speed 300
if %s2 sets telno %s2; gosub tryd; if c sleep 20 put \3 return
sp 1200
if %s5 sets telno %s5; gosub tryd; if c gosub tym12; return
if %s4 sets telno %s4; gosub tryd; if c gosub tel12; return
echo "Sorry, none of the numbers are working right now"
gosub ak
fail
tel12 pat 1 TERMINAL
while "c&&!1" put "\r" wait -f2
if !c fail
pat 1 @
put "D1\r"; wait -f40
if !c fail
if !1 o fail
put "C 202202\r"
return
tym24 wait -f5
in !c fail
put A pat 1 "log in"; wait
put "%s1\r"; return
tym12 pat 1 x; wait
if !c fail
put A pat 1 "log in"; wait
if !c fail
put "%s1\r"; return
xsetup port 1; : if !c speed 1200 putw "ATZ\r"
pd1; pz480 : turn on time stamping, set PST timezone
set mprefix ATDP : Pulse Dial
: set mprefix ATDT : Tone Dial
set mcommand "gosub dial"
set l "1"; set m "1"
set answerback "\r\nYOUR NAME CITY\r\n\21"
: ps8 :set C/G status line attribute to dim
: set phones "c:/phones.t"
echo "Resetting Function Keys"; reskeys
set f3 @rb; set f4 "@echo Working...; gosub tlearn"
set f6 "@accept s2 Receive-File: rc %s2"
set f7 "@accept s1 Send-File: sx %s1"
: set f8 "\PXXXXX"
: accept xpassword "\E[mMaster Password: \E[8m"; lput "\E[m"
if fyamhelp.t set helpfile "yamhelp.t"; set f10 "@help"
if f/zmanh.hlp set helpfile "@yhp /zmanh.hlp"; set f10 "@help"
if fzmanh.hlp set helpfile "@yhp zmanh.hlp"; set f10 "@help"
set f11 "@find speed %phones"
set f12 "@accept s1 Name:; find \n%s1 %phones"
set f13 "@find \\\;\r %phones"
set f14 "@speed 1200 putw ATH\r"
: display bell=visual
set emdir /memo; set twxfile twx;
: set call1 ATZ\r\336ATZ\r
set call2
@bye; sleep 3; putw "\336ATZ\r\336\336ATX1 M0 S0=1\r"; clears; ena -8n
: (AT commands above are repeated to make sure modem obeys them)
: set callpath /tmp/*.xx?
set outahost
@bye; putw "ATZ\r"
::: DO NOT USE BACKSLASHES FOR FILENAMES
: set calllog c:/calllog
: set rxlog c:/tmp/rxlog
: set txlog c:/tmp/txlog
: set tmp /yam/tmp
: set lib /yam/lib
set quitcmd \003\336off\r
if dc ps4 pn2 pr97 :if RGB, green+red stat+color rev video
return
setup echo "Running ..."
set mprefix ATDP : Pulse Dial
: set mprefix ATDT : Tone Dial
if dg>10000 return
p-1; set mcommand "gosub dial"
if da>1 goto setu1
if !flocal.t gosub sinit; gosub .local.t; goto setu1
gosub .local.t
echo "Hello %s6 %s7."
lput "Has your phone number info changed since the\r\n"
lput "last time you entered your name (y/n) ?"
if y del local.t; gosub sinit; gosub .local.t
if c gosub carrier
setu1: if dd pd1; pz480
pe0
set f3 @rb; set f4 "@echo Working...; gosub tlearn"
set f5 "@accept s1 Send-File(s): sz %s1"
set f6 "@accept s2 Receive-File: rc %s2"
set f7 "@accept s1 Send-File: sx %s1"
set f8 "\PXXXXX"
set f11 "@find speed %phones"
set f12 "@accept s1 Name:; find \n%s1 %phones"
set f13 "@find \\\;\r %phones"
set f14 "@speed 1200 putw ATH\r"
if fyamhelp.t set helpfile "yamhelp.t"; set f10 "@help"
if f/zmanh.hlp set helpfile "@yhp /zmanh.hlp"; set f10 "@help"
if fzmanh.hlp set helpfile "@yhp zmanh.hlp"; set f10 "@help"
if da>1 return
: return : uncomment this line to remove automatic menu startup
sets menu %phones
cls; goto cmdch
demo cls
cmdch: echo " ZCOMM Beginner's Menu "
display nlmode nooverstrike
lput "\ns Generate a script with AI \E[1mTurboLearn Script Writer\E[m(Tm)\n"
if fnewscr.t lput "e Execute your new script in newscr.t\n"
lput "f Flash-up HELP Processor\n"
lput "a Add a new system entry to the Telephone Directory\n"
lput "c Compuserve Online Demo (requires modem)\n"
lput "d Dial telephone number and connect\n"
lput "g Go Local (Direct Connection)\n"
lput "h Host Operation demo (dial-in)\n"
lput "l List file names in current directory\n"
lput "n Newest files listed first\n"
if !dS lput "o Display Ordering Information\n"
lput "r Review (circular buffer search/cut/paste) demo\n"
lput "t Call Telegodzilla (Omen's Software Downloading System)\n"
lput "u Utility command demo\n"
lput "x eXit to DOS\n"
lput "z exit to ZCOMM command prompt\n\n"
display nonlmode
choos: acceptl1 s1 "Please enter your menu choice "
if is1,a gosub add; cls; goback cmdch
if is1,c call cidemo; cls; goback cmdch
if is1,d call xdnum; cls; goback cmdch
if is1,e call .newscr.t; goback choos
if is1,f help; goback cmdch
if is1,g call glocal; cls; goback cmdch
if is1,h gosub host; host; return
if is1,l dirr; goback choos
if is1,n dirt; goback choos
if is1,o gosub order; goback choos
if is1,r kill; gosub review; goback choos
if is1,s echo "Working..."; gosub tlearn; acceptl1 s0 "Hit Enter "; goback cmdch
if is1,t call telegodzilla; cls; goback cmdch
if is1,u gosub udemo; cls; goback cmdch
if is1,x x
if is1,y goto quitt
if is1,z goto quitt
cls; echo "Unknown Command"; goback cmdch
udemo: cls; echo "Enabling debug output to show the commands"; pv4
echo "The find command searches files for a string, case insensitive"
find zcom *.t
gosub ak
echo "The sum command calculates file checksum compatible with Unix"
sum local.t
gosub ak
echo "Word Count: lines, words, printing characters, and characters"
echo "The count of printing characters predicts ribbon usage!"
wc *.t
gosub ak
echo "The chek command calculates a 16 bit file CRC useful for comparing"
echo "Multiple copies of the same file for accurcacy and identity."
chek local.t
gosub ak
cls
echo "Paced upload transmission demonstration"
echo "File Upload pacing is used with bulletin boards, etc."
echo "Note the EXTRA delay at the end of each line"
display nooverstrike
open %phones
echo "Let's just send a little bit from the END of the file"
seek -120
ph2; o; t -adhxtp
close; pv0; dis -dah
gosub ak
return
73 speed 1200 %l-603-924-9809 t
amrad-bbs speed 300 %l-703-734-1387 t
amsat-bbs speed 300 %l-512-852-8194 t
caf speed 1200 %s8-3406\;
cidemo speed 1200 set s1 "cis02"; gosub callcis
pat 0 OK;
pat 1i ID:
pat 2 "please log in: "
pat 3 "DISCONNECTED"
pat 4 "?? LOG"
pat 5i "more !"
pat 6$ "!"
pat 7i "continue!"
wait; put 77770,101\r
pat 1i assword:; wait; if !1 goto cid2
echo "Sending PASSWORD"; put FREE-DEMO\r
wait
cid2: if "3||2" echo " Login may be possible through a Compuserve Node "
if "1||4||3||2" echo " Try Again Later "; o; sleep 50; return
pat;
pat 1i "menu !"
pat 2i "page !"
pat 3i "choice !"
pat 4i "continue!"
pat 5i "more !"
pat 6$ "!"
put \25s\r
wait put "\025t\r"
wait put "\0253\r"
wait put "\025s 1\r"
wait put "\025log\r"
pat 1i ID:
wait -f5
echo "Good Bye Cruel World"
close
o
gosub ak
gosub review
return
review if !fcdemo echo "Sorry, the file \"cdemo\" is missing."; return
kill; read cdemo
del cut
<revv
review
echo "Let's play with that file."
echo "First, a word count"
wc cut
echo "Next, 32 bit file CRC, then a Unix style checksum"
crc cut; sum cut
sleep 100
return
cis speed 1200 nolog 232-4026 sleep 20 : Compuserve via CIS
put \3
cis: pat 1 ID:; wait
put 70001,0001\r pat 1 assword:; wait; put "wrongo\r"
pat 1 OK; pat 2 Plex!; pat 3 "\nFunction: "; pat 4 "!"
wait
if n o return
pat; t -fcs!p
return
cis24 speed 2400 nolog 222-2151 : Compuserve via Tymnet 2400 bps
pat 1i x; wait -f5 put A pat 1 "log in"; wait
put "cis02;"; goto cis
cis02 speed 1200 nolog 222-0900 : Compuserve via Tymnet
pat 1i x; wait put A pat 1 "log in"; wait
put "\030cis02;" goto cis
cisdat speed 1200 %l-604-687-7144 : Compuserve via Datapac
sleep 25
ena -t
put "..\r"
pat 1 "DATAPAC"
wait -f4
put "P 29400138\r"
dis -t
pat 1 "Name:"
wait -f20
put "cis\r"
goto cis
cistel speed 1200 295-3028 : Compuserve via Telenet
pat 1 TERMINAL
while !1 put "\r" wait -f1
pat 1 @
put "D1\r"; wait -f4
if !1 o abort
put "C 202202\r"
goto cis
navobsy speed 1200 %l-202-653-1079 t -u7e
echo " type @tco for list of commands "
nbs speed 300 %l-301-948-5717 t
nbs2 speed 300 %l-301-948-5718 t
oem speed 1200 %s8 pat 1i \5;wait;put \1;sb;o
omen-tech speed 1200 %s8 t
pl24 speed 2400 241-0496 goto pl1 : People-Link via Telenet
pl speed 1200 295-3028 : People-Link via Telenet
pl1: patt; patt 1 TERMINAL
while !1 put "\r" wait -f1
pf40 patt 1 @
put "D1\r"; wait
if !1 o abort
put "set 0:33,64:1\r"; wait -f1
put "c 312 63\r"
pat 1 "PRESS <RETURN>:"; wait -f15; put "\r"
pat 1 "ID:"; wait -f15; put "myacct\r"
pat 1 "PASSWORD:"; wait -f15; put "nothis\r"
set f9 "/next\r"; set f10 "/dlo;fil;xmo;\r\r"
t
source1200 speed 1200 295-3028 : The Source via Telenet
sourcex: set f7 "upi n b "
set f9 "upi n g "
set f8 ",-,*,rb"
set f10 ",-,*,sb"
pf3
patt; patt 1 TERMINAL
while "L<5&&!1" put "\r" wait -f1
if !1 off
pf40 patt 1 @
put "D1\r"; wait
if !1 o abort
put "c 30124\r"
kill; patt; patt 1 SOURCE; wait
if !1 o abort
putw "id ABC123 notthis\r"
patt; pat 10c "-More-" "@put \r lput \r\E[A\E[2M\E[A"
pf9999; wait
source300 speed 300 295-3028 : The Source via Telenet
goto sourcex
telegodzilla speed 1200 %s8-3746
ena -Z; display overstrike; cls; pat 1 \n
while "!1&&c&&L<10" put \r wait -f1
if !1||!c echo "Access Failed"; o; return
pat 1 "ease:"; wait -f2
put "\b\b%s6 %s7\r"; pat 1 ect;wait -f2
put "y"; pat 1 "-Host"; wait -f5
if !forder putw "\b\bsz demo/order\r"
set s0 "TeleGodzilla"
tele1: echo "You are now Online to \42%s0\42."
echo "Type F1 when done."; pat; t -Z!vn
lput "\Ez Do you wish to disconnect (y/n) "
if y echo " Disconnecting ... ";put \25\4; wait -f2; o; return
echo " ************** Rewinding the Capture Buffer ************** "
rewind; wait -f0; goto tele1
host echo " host " speed 1200
set welcome welcome.txt
set password Ritchie
set challenge challeng.txt
set unrestrict "CustomerSupport" : WARNING - CHANGE THIS!!
set xhelpfile xyamhelp.t
set private private; set messages messages
set emdir "."; set twxfile twx;
set call2 ATZ\r\336\336ATM1X1S0=1\r\336ATM1X1S0=1\r\336\336
set outahost "@pk512; putw ATM0H1\r"
set baudstr "@gosub baud"
pc40
return
sinit pv0; cls
echo " Initial setup for ZCOMM with ZMODEM, WXMODEM, etc. "
echo " I need some phone information. "
accept s6 " Your \E[1mFirst\E[0m name please "
accept s7 " Your Last name please "
set s8 ""
getac: accept s8 " Please enter your 3 digit telephone area code, plus <Enter> "
if !%s8 goto getac
echo "I need local access numbers for the Compuserve Information Service."
if dd lput "Shall I search for them (y/n) ?"
if dd if y echo "300/1200 bps Access Numbers"; find "%s8 " cisnodes.lst
echo "Just hit <Enter> if your modem doesn't have the indicated speed."
accept s3 " Please enter the 1200 baud local Compuserve Node phone Number "
accept s2 " Please enter the 300 baud local Compuserve Node phone Number "
accept s5 " Please enter the 1200 baud local Tymnet Node phone Number "
accept s4 " Please enter the 1200 baud local Telenet Node phone Number "
echo "Creating disk file 'LOCAL.T' for future reference"
kill; pv0; create -y local.t
echof " :Area Code is \042%s8\042"
if %s2 echof " set s2 \042%s2\042"
if %s3 echof " set s3 \042%s3\042"
if %s4 echof " set s4 \042%s4\042"
if %s5 echof " set s5 \042%s5\042"
if %s6 echof " set s6 \042%s6\042"
if %s7 echof " set s7 \042%s7\042"
echof " set s8 1-503-621"
lput "\EzAre you using a Color Monitor? (y/n) "
if y echof " if dd&&dc ps4 pn3 pr97 pu6"; ps4 pn3 pr97 pu6
lput "\r\nIs your display adapter flicker/snow free? (y/n) "
if y echof " if dd&&dc display warpdrive"; display warpdrive
lput "\r\nIs your modem connected to COM2? (y/n) "
if y echof " port 2"; port 2
lput "\r\nDo you use DTMF (TouchTone) dialing? (y/n) "
if y echof " set mprefix ATDT"
lput "\r\nDoes your modem include 2400 bps or higher? (y/n) "
if y echof " set mcommand \"gosub mm224\""; set mcommand "gosub mm224"
close; echo "file created"
if dd echo "Searching for directory entries with your area code"
if dd find l-%s8- %phones
if dd echo "Please change the %phones lines shown above to suit your area."
if !is8,503 return
kill; pv0; create -+ local.t
lput "Is 621-3746 (Burlington Exchange) a local call for you ? (y/n) "
if y echof " set s8 621"
else echof " set s8 1-621"
close; return
quitt: echo " Type 'menu' to return to this menu "
if Jf10,@ echo " Press F10 for Flash-Up Help "
echo "\n\n The following ABORT message is normal "
abort
carrier lput " Type \ESy\Eq if the modem is now connected to a computer: "
if y echo "OK, just checking"; sleep 30; return
lput "\r\n\nAlthough ZCOMM can operarte with the modem's\r\n"
lput "Carrier Detect signal always on, this script (and most other\r\n"
lput "scripts) require the Carrier Detect signal to read the actual\r\n"
lput "modem status. Please adjust the modem accordingly; on the Hayes\r\n"
lput "SmartModem 1200, switch 6 should be UP. "
off
xdnum cls
if jmcommand,mm224 sp 2400; goto xd1
lput "Use 2400 Baud (y/n) ? "
if y speed 2400; goto xd1
lput "Use 300 Baud (y/n) ? "
if y speed 300; goto xd1
speed 1200; echo "1200 Baud, then."
xd1: accept telno "Enter Telephone Number: "
if !%telno return
if Jmcommand,2 gosub mm224
if Jmcommand,l gosub dial
sets s0 "%telno"
goto tele1
glocal cls; display nonlmode
lput "Use Port 2 (y/n) ?"
if y port 2
else port 1
gosub askspd
set s0 "Local"
tele9: echo "You are now Online to %s0."
echo "Type F1 when done."; pat; t -Z!v
lput "\Ez Finished talking now (y/n) "
if y goto tele2
echo " ************** Rewinding the Capture Buffer ************** "
rewind; wait -f0; goback tele9
tele2: lput "\Ez Do you wish to disconnect (y/n) "
if y echo " Disconnecting ... ";put \25\4; wait -f2; o
return
order if forder display overstrike; page order; return
cls display overstrike
lput "ZCOMM Registration, Typeset Manual Pages, ZSNP, and update disk sell for $40.00.\r\n"
lput " (Add $10 if you wish a PC-size binder)\r\n"
lput "\r\n"
lput " Send check to Omen Technology, PO Box 4681, Portland OR 97208\r\n"
lput "Please see Chapter 3 of the ZCOMM User's Manual for more information."
lput "\r\n"
return
baud pat 1 "CONNECT\r\n"; pat 2 "NO CARRIER"
pat 5 "CONNECT 1200\r\n"; pat 3 "CONNECT 2400\r\n"
pe-20
wait -Ef25
dis -E
if 1 speed 300 return
if 5 speed 1200 sleep 20 return
if 3 speed 2400 sleep 20 return
kill create -+ rings
close
fail
: This assumes a Hayes compatible modem set for extended result messages
::
::
:: Alternate dial script for Multi Tech 224 modem uses speed fallback.
:: This also supports Telebit TrailBlazer modems.
:: If the call is placed at > 300 bps, switch to 2400 bps. Make the
:: call. If the called modem only supports 1200 or (ugh) 300 bps,
:: the modem will drop back in speed. The actual connect speed is indicated
:: by a "CONNECT", "CONNECT 1200", or "CONNECT 2400" string.
:: Fallback to 300 bps may be a bit messey, (depending on the answering
:: modem, so a call originated at 300 bps will go out at that speed
::
::
mm224 pat; if dd&&v<1 ena -Q
if "%telno<2" echo "Please do not use \"call mm224\""; abort
set s0 ""
if S==450 set s0 "450"; sp 300 echo "300 bps"
else if "S<9500&&S>111" sp 2400 echo "2400 bps"
gosub waketb
put "AT E1 Q0 S10=10 S7=70 V1\r"; wait -f2
put "ATS6=3 X1 S8=1 S0=0\r" wait -f2
put "ATX3\r" wait -f2 :: Change this as necessary for your modem
put %mprefix; putw %telno\r; dis -Qdt
if "jtelno,;" echo "Lift Telephone Receiver, Hit SPACE"; return
pat 1 "CONNECT\r"; pat 2i "NO CARRIER"; pat 3 "BUSY"; pat 4 RING;
pat 5l "ECT 12"; pat 6l "ECT 24"; pat 7l "CONNECT FAST"
pat 8 "NO DIAL TONE"; pat 10l "CONNECT 300"
pat 11 "CONNECT 9600"; pat 12l "CONNECT 19200"
wait -f70
while "4&&!L>3" wait -f20
if "1||10" if is0,450 sp 450; echo "450 bps"; pat; return
if "1||10" sp 300 pat; return
if 5 sp 1200 pat; return
if 6 sp 2400 pat; return
if "du&&7" sp 9600 echo "9600 bps"; pat; return
if "7||11" sp 19200; pat; return
if 12 sp 19200; pat; return
echo "No Connect Message Detected."
if !9 bye
pat; o; fail
: inittb initializes the TrailBlazer NVRAM for these scripts
inittb sp 9600; ena -t; gosub waketb
putw "at&F S0=0 S50=0 S52=1 S53=1 S54=1 S58=3 S68=3\r\336\336"
putw "ATS51=255 \r\336\336"
putw "atS111=255 S95=2 S92=1 S52=2\r\336\336"
putw "AT&W\r\336\336"
return
: initfc initializes the Fastcomm 2496T for these scripts
initfc sp 9600; gosub waketb
putw "AT #LDN #LCN S57=2 #W\r"
:: Generate a script with TurboLearn Script Writer(TM)
tlearn set f30 "" :: telephone number, and flag that telno was entered
if c goto connected
cls
accept f30 "Enter Telephone Number "
ag1: accept f31 "Enter Speed (300, 1200, 2400) "
if if31,2400 speed 2400 goto ag2
if if31,1200 speed 1200 goto ag2
if if31,300 speed 300 goto ag2
echo "Bad speed"; goback ag1
ag2: lput "\r\n1 System uses IBM PC (ANSI) line drawing characters\r\n"
lput "2 System uses 7 bits even parity\r\n"
lput "3 System uses 8 bits No parity (8n1)\r\n"
lput "\r\n"
acceptl1 f32 "Choose one of the above: "
lput "\r\n"
ena -8n
@%f30
if !c echo "Sorry, no connection"; return
set f35 ""
if if32,1 ena -8g; set f35 "ena -8g"
if if32,2 ena -7e; set f35 "ena -7e"
connected:
echo "Finish with F1. Use ALT-B to send a break if necessary"
learn -y tlrn.tmp
cn2: if !r echo "WARNING: Learning (recording) terminated prematurely!"
close
kill
create newscr.t
if !r abort
echo "Is this to become a Telephone Directory entry (y/n)?"
if !y goto nodir
accept f36 "What directory entry name to use? "
echoc "%f36 speed %f31 %f30 %f35"
nodir: close; set f32 ""
echo "Should the script disconnect the phone line (y/n) ?"
if !y "!tlearn tlrn.tmp >>newscr.t"; goto scdone
set f32 "bye; return"
echo "Should the script then exit to the Operating System (y/n)?"
if y set f32 "off"
!tlearn -r tlrn.tmp >>newscr.t
create -+ newscr.t; echof " %f32"; close
scdone: echo "Your new script is in the file 'newscr.t' !!"
if %f30 echo "You may add this file to your Telephone Directory"
if %f30 echo "Or execute it with 'call %f36.newscr.t'"; return
echo "You may execute this file with 'source newscr.t'"
return
:: Add a telephone directory entry
add: if r close
cls
echo "Create New Phone Directory Entry"
xg0: accept f33 "Enter new directory name: "
p?0
lput "Searching for duplicate name"
find "\n%f33" %phones
if ? echo "Please choose another name"; goback xg0
accept f34 "Enter Comments for this number: "
accept f30 "Enter Telephone Number: "
xg1: accept f31 "Enter Speed (300, 1200, 2400, 9600, 19200): "
if if31,19200 speed 2400 goto xg2
if if31,9600 speed 2400 goto xg2
if if31,2400 speed 2400 goto xg2
if if31,1200 speed 1200 goto xg2
if if31,300 speed 300 goto xg2
echo "Bad speed"; goback xg1
xg2: lput "\r\n1 System uses IBM PC (ANSI) line drawing characters\r\n"
lput "2 System uses 7 bits even parity\r\n"
lput "3 System uses 8 bits No parity (8n1)\r\n"
lput "\r\n"
acceptl1 f32 "Choose one of the above: "
lput "\r\n"
set f35 ""
if if32,1 set f35 " -8g"
if if32,2 set f35 " -7e"
kill; pv0; create -+ %phones
if !%f34 goto nobanr
echoc "%f33 speed %f31 echo \42%f34\42 %f30 t%f35"
close; return
nobanr: echoc "%f33 speed %f31 %f30 t%f35"
close; return
:: Login script for Byte Information Exchange
bix speed 1200 222-0900 :: Tymnet local node
pat 1i "\256"; wait -F2; put a
pat 1i "log in"; wait
ena -h; put "\bBYTENETI;MGH\r"
pat 1i "):"; wait
if jargs,new put "new\r"; t -h; quit
put "bix\r"
pat 1i "ame?"; wait
put "yourname\r"
pat 1i "assword:"; wait
dis -h; put "expensive\r"
t -h